<%--
  Created by IntelliJ IDEA.
  User: sky
  Date: 17/5/10
  Time: 16:39
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<div class="nav-bar">
    <div class="nav-bar-content">

        <c:forEach items="${sessionScope.menuList}" var="menu">

            <div id="${menu.menuName}"   class="nav-bar-active"><a href="${menu.menuUrl}" >${menu.menuName}</a></div>


        </c:forEach>


         <c:set var="role" value="-1"/>


        <c:forEach items="${sessionScope.roleMenu}" var="menu">

            <c:if test="${requestScope.selectTab==menu.menu_name}">

                <c:set value="${menu.role}" var="role"/>

            </c:if>

        </c:forEach>




    </div>
</div>
<script src="/assets/js/jquery-1.11.1.min.js"></script>
<script type="text/javascript">
    var selectBarVar='${requestScope.selectTab}';

    var role='${role}';

    $('#'+selectBarVar).addClass('nav-bar-active').siblings('div').removeClass('nav-bar-active');

</script>